<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>PathSegments</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">PathSegments()</font></b></p>
<p><b>语法</b></p><blockquote>

Result$ = <font color="#006666"><b>PathSegments</b></font>()</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Returns a string description of the current vector drawing path. The result can be used 
to examine the current path or in the <a href="addpathsegments.html">AddPathSegments()</a> command to reproduce the same path later. 

 

</blockquote><p><b>参数</b></p><blockquote>
无.


</blockquote><p><b>返回值</b></p><blockquote>



The returned string contains one letter commands followed by the appropriate number of coordinate parameters. 
Each value is separated by a single space. All coordinates are absolute. 

 

<pre><font face="Courier New, Courier, mono"size="2">  M x y                <a href="movepathcursor.html">MovePathCursor()</a>
  L x y                <a href="addpathline.html">AddPathLine()</a>
  C x1 y1 x2 y2 x3 y3  <a href="addpathcurve.html">AddPathCurve()</a>
  Z                    <a href="closepath.html">ClosePath()</a>
</font></pre>



There are no string representations for commands like <a href="addpathcircle.html">AddPathCircle()</a> or <a href="addpathellipse.html">AddPathEllipse()</a>, as their results 
are internally converted to <a href="addpathcurve.html">curves</a> by the vector drawing library. 

 

</blockquote><p><b>示例</b></p><blockquote>


<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">If</font></b> <font color="#006666">OpenWindow</font>(0, 0, 0, 400, 200, "VectorDrawing", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font>)
<font color="#006666">    CanvasGadget</font>(0, 0, 0, 400, 200)

    <b><font color="#006666">If</font></b> <font color="#006666">StartVectorDrawing</font>(<font color="#006666">CanvasVectorOutput</font>(0))
      
<font color="#006666">      MovePathCursor</font>(40, 20)
      <b><font color="#006666">For</font></b> i = 1 <b><font color="#006666">To</font></b> 4
<font color="#006666">        AddPathLine</font>(80, 0, <font color="#924B72">#PB_Path_Relative</font>)
<font color="#006666">        AddPathLine</font>(0, 40, <font color="#924B72">#PB_Path_Relative</font>)
      <b><font color="#006666">Next</font></b> i
      
      <font color="#006666">; Show the path segments</font>
      <b><font color="#006666">Debug</font></b> <font color="#006666">PathSegments</font>()
      
<font color="#006666">      VectorSourceColor</font>(<font color="#006666">RGBA</font>(255, 0, 0, 255))
<font color="#006666">      StrokePath</font>(10, <font color="#924B72">#PB_Path_RoundCorner</font>)
    
<font color="#006666">      StopVectorDrawing</font>()
    <b><font color="#006666">EndIf</font></b>
    
    <b><font color="#006666">Repeat</font></b>
      Event =<font color="#006666"> WaitWindowEvent</font>()
    <b><font color="#006666">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="addpathsegments.html">AddPathSegments()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=pathpointy.html>PathPointY()</a> - <a href=index.html>VectorDrawing Index</a> - <a href=pdfvectoroutput.html>PdfVectorOutput()</a> -&gt;<br><br>

</body></html>